<template>
  <div class="goods">
    <goods-list-item v-for="item in goods" :key="item.iid" :goodsItem="item">
    </goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from './GoodsListItem'

export default {
  name: 'GoodsList',
  props: {
    goods: {
      default() {
        return []
      },
      type: Array
    }
  },
  components: {
    GoodsListItem
  }
}
</script>

<style scoped>
/* @import url(); 引入css类 */
.goods {
  display: flex;
  /* 包裹: 决定当前行显示多少个 */
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2px;
}

</style>
